package com.itheima.health.dao;

import com.itheima.health.pojo.Menu;

import java.util.List;

public interface MenuDao {
    /**
     * 获取主菜单
     * @param username
     * @return
     */
    List<Menu> getParentMenu(String username);

    /**
     * 根据主菜单ID和用户名，查询子菜单
     * @param parentMenuId
     * @param username
     * @return
     */
    List<Menu> getChildrenMenuByParentMenuId(Integer parentMenuId, String username);
}
